package com.dy.details.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dy.details.mapper.ShoppingCarMapper;
import com.dy.details.service.ShoppingCarService;
import com.dy.pojo.Orders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShoppingCarServiceImpl extends ServiceImpl<ShoppingCarMapper, Orders> implements ShoppingCarService {
    @Autowired
    private ShoppingCarMapper shoppingCarMapper;

    @Override
    public List<Orders> findall() {
        return shoppingCarMapper.findAll();
    }


    @Override
    public void updatestatus(Orders orders) {
        shoppingCarMapper.updatestatus(orders);
    }
}
